package com.atguigu.tingshu.order.client;

import com.atguigu.tingshu.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(value = "service-order", path = "/client/order/orderInfo")
public interface OrderInfoClientFeign {

    @GetMapping("/getOrderInfo/{trackId}")
    List<OrderInfo> getOrderInfo (@PathVariable(value = "trackId") Long trackId);


    @GetMapping("/getUserTrackOrderInfo/{userId}")
    Map<String, Object> getUserTrackOrderInfo(Long userId);

}